<!--
  Generated template for the AssistantfixededitPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>修改固定资产库存管理</ion-title>
  </ion-navbar>

</ion-header>


<ion-content>
  <ion-list class="apply">
    <!--主体相关 -->
    <ion-item class="sitem">
      <ion-label fixed>
        <span>*</span>资产编码：</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.code"></ion-input>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span>*</span>资产：</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.name"></ion-input>
    </ion-item>
    <ion-item class="sitem">
        <div class="title">资产归属：</div>
        <div class="content">{{inputViewModel.guiitem.name}}</div>
        <i class="iconfont icon-sousuo" item-end tappable (click)="applycompanyselect()"></i>
      </ion-item>
    <ion-item class="sitem">
        <div class="title">管理部门：</div>
        <div class="content">{{inputViewModel.depart.name}}</div>
        <i class="iconfont icon-sousuo" item-end tappable (click)="applydepartselect(1)"></i>
      </ion-item>
    <ion-item class="titem">
      <ion-label stacked>资产描述：</ion-label>
      <ion-textarea [(ngModel)]="inputViewModel.miao"></ion-textarea>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span></span>规格程式：</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.gui"></ion-input>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span></span>单位：</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.unit"></ion-input>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span></span>数量：</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.number"></ion-input>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span></span>原值：</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.gen"></ion-input>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span></span>残值：</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.zan"></ion-input>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span></span>首次购置日期：</ion-label>
      <ion-datetime [(ngModel)]="inputViewModel.first" type="datetime-local" pickerFormat="YYYY-MM-DD HH:mm:ss" displayFormat="YYYY-MM-DD HH:mm:ss"
        min="{{this.inputSelectView.applyoaminDate}}" max="{{this.inputSelectView.applyoamaxDate}}" cancelText="取消" doneText="确认"></ion-datetime>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span>*</span>资产分类：</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.fen"></ion-input>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span></span>会计核算分类：</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.kuai"></ion-input>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span></span>增加原因：</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.addgen"></ion-input>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span></span>折旧码：</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.jiuma"></ion-input>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span></span>折旧计算开始日期：</ion-label>
      <ion-datetime [(ngModel)]="inputViewModel.jiufirst" type="datetime-local" pickerFormat="YYYY-MM-DD HH:mm:ss" displayFormat="YYYY-MM-DD HH:mm:ss"
        min="{{this.inputSelectView.applyoaminDate}}" max="{{this.inputSelectView.applyoamaxDate}}" cancelText="取消" doneText="确认"></ion-datetime>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span></span>折旧年限年：</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.jiuyear"></ion-input>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span></span>折旧年限月：</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.jiumonth"></ion-input>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span></span>年初累计折旧：</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.alljiuyear"></ion-input>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span></span>当年记账折旧：</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.nowjiuyear"></ion-input>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span></span>当月记账折旧：</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.nowjiumonth"></ion-input>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span></span>累计折旧：</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.alljiu"></ion-input>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span></span>所在地点：</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.address"></ion-input>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span>*</span>是否在账：</ion-label>
      <ion-select [(ngModel)]="inputViewModel.iszhang" interface="popover">
        <ion-option [value]="1">在账</ion-option>
        <ion-option [value]="2">不在账</ion-option>
      </ion-select>
    </ion-item>
    <ion-item class="sitem">
        <div class="title">使用人：</div>
        <div class="content">{{inputViewModel.user.name}}</div>
        <i class="iconfont icon-sousuo" item-end tappable (click)="applyapplymemberselect(1)"></i>
      </ion-item>
      <ion-item class="sitem">
          <div class="title">使用部门：</div>
          <div class="content">{{inputViewModel.usedepart.name}}</div>
          <i class="iconfont icon-sousuo" item-end tappable (click)="applydepartselect(2)"></i>
        </ion-item>
    <ion-item class="sitem">
      <div class="title">部门负责人：</div>
      <div class="content">{{inputViewModel.userdepart.name}}</div>
      <i class="iconfont icon-sousuo" item-end tappable (click)="applyapplymemberselect(2)"></i>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span>*</span>备注：</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.note"></ion-input>
    </ion-item>
    <!--执行相关 -->
    <ion-item class="aitem">
      <button ion-button (click)="applyapplydone()">确定</button>
      <button ion-button (click)="applyapplydone()">保存</button>
    </ion-item>
  </ion-list>
</ion-content>
